﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max_Min
{
    class Program
    {
        static void Main(string[] args)
        {
            double a, b, max, min;
            Console.WriteLine("请输入两个实数");
            a = double.Parse(Console.ReadLine());
            b = double.Parse(Console.ReadLine());
            max = Math.Max(a, b);
            min = Math.Min(a, b);
            Console.WriteLine($"最大值为{max },最小值为{min }");
            Console.ReadKey();
        }
    }
}
